package com.intramirror.product.service;

import com.intramirror.product.entity.PriceChangeRule;
import com.intramirror.product.entity.SnapshotPriceDetail;
import com.intramirror.product.entity.SnapshotPriceRule;

import java.util.List;
import java.util.Map;

/**
 * Created on 2018/5/31.
 * @author 123
 */
public interface IPriceChangeRuleService {

    List<Map<String, Object>> getProductRule(Map<String, Object> param);

    List<Map<String, Object>> getProductGroupRule(Map<String, Object> param);

    List<Map<String, Object>> getProdCategoryBrandRule2(Map<String, Object> param);

    List<Map<String, Object>> getProdCategoryBrandRule1(Map<String, Object> param);

    List<Map<String, Object>> getProdCategoryBrandRule0(Map<String, Object> param);

    List<Map<String,Object>> getCategoryType(Map<String,Object> param);

    String getSystemPropertyByName(String sysPropName);

    Long isHotBrandProduct(Long productId);

    void deleteSnapshotDetailByProductId(Map<String, Object> params);

    List<SnapshotPriceRule> selectByPriceChangeRuleId(Long productId);

    void insertSnapshotPriceDetail(SnapshotPriceDetail spd);

    PriceChangeRule selectByPrimaryKey(Long priceChangeRuleId);
}
